package top.zhangjianyong.tools.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;
import top.zhangjianyong.tools.user.IUser;

/**
 * @author ： zhangjianyong
 * @date ： 2021/11/1 14:15
 */
@Data
@TableName("user")
public class User extends BaseEntity implements IUser {
    private String username;
    private String password;
    private String email;

    @Override
    public boolean admin() {
        return true;
    }

    public Integer getState() {
        return 1;
    }
}
